package com.solin.blog.web.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author solin
 * @description TestListener
 * @since 2022/2/12 15:15
 */
//@WebListener
@Slf4j
public class TestListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("-------------项目启动---------------");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("---------------项目销毁-------------");
    }
}
